var express = require('express');
var router = express.Router();
const  users = require('../controllers/auser')
const upload=require("../utils/upload");
//const upload2=require("../utils/upload2");
const svgCaptcha = require('svg-captcha');


const multer = require('multer');
const uploadtest = multer({ dest: 'public/upload/' }) 
 




router.post('/login', users.login)

router.post('/regist', users.regist)

router.post('/info', users.info)

router.post('/edit', users.edit)

router.post('/upload',upload())


router.post('/test',upload({field:'thumb',share:true}),function(req, res, next) {   
    console.log(req.body)  
    res.end()
});
router.post('/test2',function(req, res, next) {
    console.log(req.body)  
    res.end()
});
module.exports = router;
